<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>计算商品金额</title>

<script type="text/javascript">
	var price=19.7;		//商品单价
	var number=100;		//商品数量
	var sum=price*number;	//计算式
	alert(sum);			//以窗口形式显示结果
	document。write("<h1>This is a heading</h1>");
</script>

</head>
<body>

</body>
</html>